<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<LINK rel="stylesheet" type="text/css" href="${baseurl}js/easyui/styles/default.css">
<%@ include file="/WEB-INF/jsp/base/common_css.jsp"%>
<%@ include file="/WEB-INF/jsp/base/common_js.jsp"%>
<title>确认发货明细</title>
<script type="text/javascript">
  //datagrid列定义
	var columns_v = [ [ {
		field : 'orderNo',
		title : '商品名称',
		align :'center',
		width : 120
	}, {
		field : 'createTime',
		title : '图片 ',
		align :'center',
		width : 180
	},{
		field : 'orderStatus',
		title : '规格',
		width : 120,
		align :'center',
	}, {
		field : 'opt1',
		title : '原价',
		align :'center',
		width : 120,
	}, 
	{
		field : 'opt2',
		title : '优惠价',
		align :'center',
		width : 120,
	},{
		field : 'opt2',
		title : '数量',
		align :'center',
		width : 120,
	},{
		field : 'opt2',
		title : '总价',
		align :'center',
		width : 120,
	}] ];
 
 //加载datagrid
	$(function() {
		$('#orderlist').datagrid({
			nowrap : true,
			striped : true,
			url : "${pageContext.request.contextPath}/order/loadOrderDetail?id=${order.id }",
			idField : 'id',
			loadMsg : '',
			columns : columns_v,
		});
	});
</script>
</head>
<body>


<form id="userform" action="" method="post">
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed>
   <TBODY>
   <TR>
				<TD background=images/r_0.gif width="100%">
					<TABLE cellSpacing=0 cellPadding=0 width="100%">
						<TBODY>
							<TR>
								<TD>&nbsp;订单发货信息</TD>
								<TD align=right>&nbsp;</TD>
							</TR>
						</TBODY>
					</TABLE>
				</TD>
			</TR>
			<TR>
				<TD>
					<TABLE class="toptable grid" border=1 cellSpacing=1 cellPadding=4
						align=center>
						<TBODY>
							<TR>
								<TD height=12 width="10%" align=center >订单号码：</TD>
								<TD height=12 width="10%" align=center >时间：</TD>
								<TD height=12 width="10%" align=center >状态：</TD>
								<TD height=12 width="10%" align=center >操作：</TD>
							</TR>
							<TR>
								<TD class=category width="10%" align=center >
								     ${order.orderNo }
								</TD>
								<TD class=category width="10%" align=center >
								  ${order.createTime }
								</TD>
								<TD class=category width="10%" align=center >
								   <c:if test="${order.orderStatus eq 1}">
									            待确认
									</c:if>
									<c:if test="${order.orderStatus eq 2}">
									            待配货
									</c:if>
									<c:if test="${order.orderStatus eq 3}">
									            待发货
									</c:if>
								</TD> 
								<TD class=category width="10%" align=center >
								    <a id="submitbtn"  class="easyui-linkbutton"   iconCls="icon-ok" href="#" onclick="sysusersave()">完成</a>
								    <a id="closebtn"  class="easyui-linkbutton" iconCls="icon-cancel" href="#">我要收款</a>
								</TD>
							</TR>
						
							</TBODY>
						</TABLE>
					</TD>
				</TR>
   </TBODY>
</TABLE>
<br>
	<!-- 查询列表 -->
	<TABLE border=0 cellSpacing=0 cellPadding=0 width="99%" align=center>
		<TBODY>
			<TR>
				<TD>
					<table id="orderlist"></table>
				</TD>
			</TR>
		</TBODY>
	</TABLE>
	<br>
					<TABLE class="toptable grid" style="height: 35px">
						<TBODY>
							<TR>
								<TD height=15 width="10%" align=left >收货人：</TD>
								<TD width="10%" align=left style="margin-left: 10px">
								     ${order.contact }
								</TD>
								<TD  width="10%" align=left style="margin-left: 10px">
								          星级
								</TD>
								<TD height=15 width="10%" align=left >联系电话：</TD>
								<TD  width="10%" align=left >
								  ${order.mobile }
								</TD>
								<TD height=15 width="10%" align=left >收货地址：</TD>
								<TD  width="10%" align=left >
								  ${order.deliveryaddress }
								</TD>
							</TR>
						
							</TBODY>
						</TABLE>
	
</form>
</body>
</html>